<!-- child组件 -->
<template>
  <div id="child">{{ name }}</div>
</template>

<script>
export default {
  props: {
    name: String, // 通过props，接受父组件传来的string类型的name
  },
}
</script>

<style lang="scss" scoped></style>
